package com.qidianit.mes.pojo;

import java.util.Date;

/**
 * @company 起点编程
 * @author 戴着假发的程序员
 * @date 2025/7/22 
 * @description 物料类别实体类
 */
public class MaterialCategory {
    private Long materialCategoryId; // 物料类别编号，自增主键
    private String categoryName; // 分类名称
    private Integer sortOrder; // 排序
    private Byte materialType; // 物料/产品，1表示物料，2表示产品
    private Byte enabledFlag; // 是否启用标记
    private Date createTime; // 创建时间
    private Long parentCategoryId; // 父类别编号
    private Byte isParentFlag; // 是否是父类类别标记
    private Byte deletedFlag; // 是否删除标记

    public Long getMaterialCategoryId() {
        return materialCategoryId;
    }

    public void setMaterialCategoryId(Long materialCategoryId) {
        this.materialCategoryId = materialCategoryId;
    }

    public String getCategoryName() {
        return categoryName;
    }

    public void setCategoryName(String categoryName) {
        this.categoryName = categoryName;
    }

    public Integer getSortOrder() {
        return sortOrder;
    }

    public void setSortOrder(Integer sortOrder) {
        this.sortOrder = sortOrder;
    }

    public Byte getMaterialType() {
        return materialType;
    }

    public void setMaterialType(Byte materialType) {
        this.materialType = materialType;
    }

    public Byte getEnabledFlag() {
        return enabledFlag;
    }

    public void setEnabledFlag(Byte enabledFlag) {
        this.enabledFlag = enabledFlag;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Long getParentCategoryId() {
        return parentCategoryId;
    }

    public void setParentCategoryId(Long parentCategoryId) {
        this.parentCategoryId = parentCategoryId;
    }

    public Byte getIsParentFlag() {
        return isParentFlag;
    }

    public void setIsParentFlag(Byte isParentFlag) {
        this.isParentFlag = isParentFlag;
    }

    public Byte getDeletedFlag() {
        return deletedFlag;
    }

    public void setDeletedFlag(Byte deletedFlag) {
        this.deletedFlag = deletedFlag;
    }

    @Override
    public String toString() {
        return "MaterialCategory{" +
                "materialCategoryId=" + materialCategoryId +
                ", categoryName='" + categoryName + '\'' +
                ", sortOrder=" + sortOrder +
                ", materialType=" + materialType +
                ", enabledFlag=" + enabledFlag +
                ", createTime=" + createTime +
                ", parentCategoryId=" + parentCategoryId +
                ", isParentFlag=" + isParentFlag +
                ", deletedFlag=" + deletedFlag +
                '}';
    }
}